package com.finley.flowabledemo.design.process_respon;


/**
 * @description:
 * @author: xianfei.chao
 * @date 2025/6/13 13:38
 * @version: 1.0
 */
public class TestMain {

    public static void main(String[] args) {
        // 螺丝装配
        LuoSiZZ luosiZZ = new LuoSiZZ();

        // 中目装配
        ZhongMuZZ zhongMuZZ = new ZhongMuZZ();

        // 双目装配
        ShuangMuZZ shuangMuZZ = new ShuangMuZZ();

        // 组装顺序
        shuangMuZZ.setNextProcessHandler(luosiZZ);
        luosiZZ.setNextProcessHandler(zhongMuZZ);

        // 开始装配
        ZZContext context = new ZZContext();
        context.setOrderCode("123456");
        context.setProduceName("一号产品");
        context.setQuality(100);
        shuangMuZZ.handler(context);
    }
}
